import { createApp } from 'vue';
import './style.css';
import App from './App.vue';
import router from './router';
import 'vant/lib/index.css';
import { useFormCreate } from "@/hooks/useFormCreate.ts";
import { useDirectives } from "@/hooks/useDirectives.ts";
import {initGlobalData} from "./hooks/initGlobalData";
import { createPinia } from 'pinia';
const pinia = createPinia();
const app = createApp(App);
//挂载路由以及pinia
app.use(router);
app.use(pinia);
//全局共享数据初始化
await initGlobalData()
//自定义挂载
useFormCreate(app)
useDirectives(app)

app.mount('#app');
